From: Florian Müllner Date: Fri, 8 Mar 2019 13:10:56 +0000 (+0100) Subject: app: Set styleclass on fallback app icons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~879^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4f65283f3160bba4beb1202fbd7d3436fbdb34fc;p=gnome-shell.git app: Set styleclass on fallback app icons For window backed apps, create_icon_texture() doesn't return an StIcon but a generic widget. Set an appropriate style class to make it easier to apply a specific style only to fallback icons. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1027 --- diff --git a/src/shell-app.c b/src/shell-app.c index e0b925b5f..7ef3a8156 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -215,6 +215,8 @@ window_backed_app_get_icon (ShellApp *app, G_OBJECT (window), "icon", size); + st_widget_add_style_class_name (widget, "fallback-app-icon"); + return CLUTTER_ACTOR (widget); }